# -*- coding:utf-8 -*-

# websocket
from django.urls import path

from Apps.Sk.interface.interface_view import InterfaceSkView
from Apps.Sk.socket_view_async import AsyncChatConsumer
from Apps.Sk.socket_views import ChatConsumer
from Apps.Sk.user.user_view import UserSkView

websocket_urlpatterns = [
    # 同步调用的方式
    path('api/skTest1/<str:pk>', ChatConsumer.as_asgi()),
    # 异步调用的方式
    path('api/skTest2/<str:pk>', AsyncChatConsumer.as_asgi()),

    # 请求SK
    path('api/user/<str:pk>', UserSkView.as_asgi()),

    # 接口定义中，发送的请求
    path('api/interface/<str:pk>', InterfaceSkView.as_asgi()),

]
